<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style/default.css">

<title>Default patient list</title>
</head>
<body>
	<div id="main-wrapper">
		<div id="wrapper">
			<jsp:include page="menu.jsp"></jsp:include>
			<div id="content-block">
				<div id="content-wrapper">
					<h1>Patient</h1>
					<div class="horizontal-line"></div>
					<c:choose>
						<c:when test="${empty bo.error}">
							<table>
								<tr>
									<td>First name:</td>
									<td><c:out value="${patient.firstName}" /></td>
								</tr>
								<tr>
									<td>Last name:</td>
									<td><c:out value="${patient.lastName}" /></td>
								</tr>
								<tr>
									<td>Mail:</td>
									<td><c:out value="${patient.mail}" /></td>
								</tr>
								<tr>
									<td>Phone number:</td>
									<td><c:out value="${patient.phoneNumber}" /></td>
								</tr>
							</table>
						</c:when>
						<c:otherwise>
							<span class="error">${bo.error}</span>
						</c:otherwise>
					</c:choose>
					<p onclick="hideOrShowElement('addElementBlock');">
						<a href=#>Add soin</a>
					</p>
					<form id="addElementBlock" action="patient" method="post">
						<input type="text" name="content" />
						<button type="submit" name="id" value="${patient.id}">add</button>
					</form>
				</div>
			</div>
		</div>
		<jsp:include page="footer.jsp"></jsp:include></div>
	<script src="../js/default.js"></script>
</body>
</html>